<template>
  <div>
    <div class="main">
      <router-view></router-view>
    </div>
    <div class="footer">
      <van-tabbar v-model="active">
        <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
        <van-tabbar-item icon="apps-o" to="/classify">分类</van-tabbar-item>
        <van-tabbar-item icon="fire" to="/speciale">特选</van-tabbar-item>
        <van-tabbar-item icon="shopping-cart-o" to="/car">购物车</van-tabbar-item>
        <van-tabbar-item icon="user-o" to="/my">我的</van-tabbar-item>
      </van-tabbar>
    </div>

  </div>
</template>

<script setup lang="ts">

import Navbar from '@/components/Navbar.vue';
import { ref } from 'vue';
const active = ref(0);
</script>

<style scoped>
.main{
  height: calc(100vh - 100px);
  margin-top: 50px;
  overflow: auto;
}

</style>